@extends('admin.app')

@section('breadcrumb')
  <div class="bg-light lter b-b wrapper-md">
    <ol class="breadcrumb bg-light lter m-n no-padder">
      <li><a href="{{ admin_action('HomeController@index') }}">主页</a></li>
      <li><a href="{{admin_action('Web\AdsController@index')}}">广告</a></li>
      <li>广告信息</li>
      <li class="active">{{ $ad->name }}</li>
    </ol>
  </div>
@endsection

@section('content')
  <div class="panel panel-default">
    <div class="panel-heading font-bold">
      广告详细
    </div>
    <div class="panel-body">
      <form class="form-horizontal">
        <div class="form-group">
          <label class="col-lg-2 control-label">名称：</label>
          <div class="col-lg-10">
            <p class="form-control-static"> {{$ad->name}} </p>
          </div>
        </div>
        <div class="line line-dashed b-b line-lg"></div>
        <div class="form-group">
          <label class="col-lg-2 control-label">图片：</label>
          <div class="col-lg-10">
            <p class="form-control-static"> <img width="500" src="{{asset($ad->image)}}"/> </p>
          </div>
        </div>
        <div class="line line-dashed b-b line-lg"></div>
        <div class="form-group">
          <label class="col-lg-2 control-label">广告类型：</label>
          <div class="col-lg-10">
            <p class="form-control-static"> {{$ad->position()->name}} </p>
          </div>
        </div>
        <div class="line line-dashed b-b line-lg"></div>
        <div class="form-group">
          <label class="col-lg-2 control-label">链接：</label>
          <div class="col-lg-10">
            <p class="form-control-static"> {{$ad->link}} </p>
          </div>
        </div>
         <div class="line line-dashed b-b line-lg"></div>
        <div class="form-group">
          <label class="col-lg-2 control-label">描述：</label>
          <div class="col-lg-10">
            <p class="form-control-static"> {{$ad->description}} </p>
          </div>
        </div>
        <div class="line line-dashed b-b line-lg"></div>
        <div class="form-group">
          <label class="col-lg-2 control-label">排序：</label>
          <div class="col-lg-10">
            <p class="form-control-static"> {{$ad->sort}} </p>
          </div>
        </div>
        <div class="line line-dashed b-b line-lg"></div>
        <div class="form-group">
          <div class="col-lg-4 col-lg-offset-2">
            <a href="{{ admin_action('Web\AdsController@index') }}" class="btn btn-default">返&nbsp;回</a>
          </div>
        </div>
      </form>
    </div>
  </div>
@endsection